class AppAccessToken {
  String appAccessToken;
  int code;
  int expire;
  String msg;
  String tenantAccessToken;

  AppAccessToken({
    required this.appAccessToken,
    required this.code,
    required this.expire,
    required this.msg,
    required this.tenantAccessToken,
  });

  factory AppAccessToken.fromJson(Map<String, dynamic> json) {
    return AppAccessToken(
      appAccessToken: json['app_access_token'] ?? '',
      code: json['code'] ?? 0,
      expire: json['expire'] ?? 0,
      msg: json['msg'] ?? '',
      tenantAccessToken: json['tenant_access_token'] ?? '',
    );
  }
}
